/** 生成sql的生成器接口
 * - 不同dialect 自行实现
 */
export interface SqlGenerator {
  createTable(
    tableName: string,
    columns: ColumnOption[],
    options: {
      /** mysql支持不同表不同引擎 */
      engine?: string;
      charset?:string;
      comment?:string;
    },
  ): string;
  dropTable(tableName: string): string;
}

/** 列定义 */
export interface ColumnOption {
  name: string;
  type: string;
  isAutoIncrement?: boolean;
  nullable?: boolean;
  primary?: boolean;
  default?: string;
}
